//
//  expage12.c
//  denissritchie
//
//  Created by Amit Jha on 7/31/12.
//  Copyright (c) 2012 Amit Jha. All rights reserved.
//

#include <stdio.h>

/* print fahrenhite-celciuis table floating point version
 for fahr = 0, 20,.... ,300 */

int mainexlpage12(){
    float fahr , celcius;
    int lower, upper, step;
    
    lower = 0; /* lower limit of temp table*/
    upper = 300; /*upper limmit of temp table*/
    step = 20;
    
    fahr = lower;
    
    while (fahr <= upper) {
        celcius  = (5.0/9.0) * (fahr - 32.0);
        printf("%3.0f\t\t%6.1f\n", fahr, celcius);
        fahr = fahr + step;
    }
    
    return 0;
    
}